﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000B05 RID: 2821
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MechanismBarInfo : IMessage<MechanismBarInfo>, IMessage, IEquatable<MechanismBarInfo>, IDeepCloneable<MechanismBarInfo>, IBufferMessage
	{
		// Token: 0x170023A1 RID: 9121
		// (get) Token: 0x06007E52 RID: 32338 RVA: 0x0015110C File Offset: 0x0014F30C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MechanismBarInfo> Parser
		{
			get
			{
				return MechanismBarInfo._parser;
			}
		}

		// Token: 0x170023A2 RID: 9122
		// (get) Token: 0x06007E53 RID: 32339 RVA: 0x00151113 File Offset: 0x0014F313
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MechanismBarInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170023A3 RID: 9123
		// (get) Token: 0x06007E54 RID: 32340 RVA: 0x00151125 File Offset: 0x0014F325
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MechanismBarInfo.Descriptor;
			}
		}

		// Token: 0x06007E55 RID: 32341 RVA: 0x0015112C File Offset: 0x0014F32C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MechanismBarInfo()
		{
		}

		// Token: 0x06007E56 RID: 32342 RVA: 0x00151134 File Offset: 0x0014F334
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MechanismBarInfo(MechanismBarInfo other) : this()
		{
			this.nEIOBABBGLH_ = other.nEIOBABBGLH_;
			this.value_ = other.value_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007E57 RID: 32343 RVA: 0x00151165 File Offset: 0x0014F365
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MechanismBarInfo Clone()
		{
			return new MechanismBarInfo(this);
		}

		// Token: 0x170023A4 RID: 9124
		// (get) Token: 0x06007E58 RID: 32344 RVA: 0x0015116D File Offset: 0x0014F36D
		// (set) Token: 0x06007E59 RID: 32345 RVA: 0x00151175 File Offset: 0x0014F375
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NEIOBABBGLH
		{
			get
			{
				return this.nEIOBABBGLH_;
			}
			set
			{
				this.nEIOBABBGLH_ = value;
			}
		}

		// Token: 0x170023A5 RID: 9125
		// (get) Token: 0x06007E5A RID: 32346 RVA: 0x0015117E File Offset: 0x0014F37E
		// (set) Token: 0x06007E5B RID: 32347 RVA: 0x00151186 File Offset: 0x0014F386
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Value
		{
			get
			{
				return this.value_;
			}
			set
			{
				this.value_ = value;
			}
		}

		// Token: 0x06007E5C RID: 32348 RVA: 0x0015118F File Offset: 0x0014F38F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MechanismBarInfo);
		}

		// Token: 0x06007E5D RID: 32349 RVA: 0x0015119D File Offset: 0x0014F39D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MechanismBarInfo other)
		{
			return other != null && (other == this || (this.NEIOBABBGLH == other.NEIOBABBGLH && this.Value == other.Value && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007E5E RID: 32350 RVA: 0x001511DC File Offset: 0x0014F3DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.NEIOBABBGLH != 0U)
			{
				num ^= this.NEIOBABBGLH.GetHashCode();
			}
			if (this.Value != 0U)
			{
				num ^= this.Value.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007E5F RID: 32351 RVA: 0x00151234 File Offset: 0x0014F434
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007E60 RID: 32352 RVA: 0x0015123C File Offset: 0x0014F43C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007E61 RID: 32353 RVA: 0x00151248 File Offset: 0x0014F448
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.NEIOBABBGLH != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.NEIOBABBGLH);
			}
			if (this.Value != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Value);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007E62 RID: 32354 RVA: 0x001512A4 File Offset: 0x0014F4A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.NEIOBABBGLH != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NEIOBABBGLH);
			}
			if (this.Value != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Value);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007E63 RID: 32355 RVA: 0x001512FC File Offset: 0x0014F4FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MechanismBarInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.NEIOBABBGLH != 0U)
			{
				this.NEIOBABBGLH = other.NEIOBABBGLH;
			}
			if (other.Value != 0U)
			{
				this.Value = other.Value;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007E64 RID: 32356 RVA: 0x0015134C File Offset: 0x0014F54C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007E65 RID: 32357 RVA: 0x00151358 File Offset: 0x0014F558
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 120U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Value = input.ReadUInt32();
					}
				}
				else
				{
					this.NEIOBABBGLH = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003045 RID: 12357
		private static readonly MessageParser<MechanismBarInfo> _parser = new MessageParser<MechanismBarInfo>(() => new MechanismBarInfo());

		// Token: 0x04003046 RID: 12358
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003047 RID: 12359
		public const int NEIOBABBGLHFieldNumber = 4;

		// Token: 0x04003048 RID: 12360
		private uint nEIOBABBGLH_;

		// Token: 0x04003049 RID: 12361
		public const int ValueFieldNumber = 15;

		// Token: 0x0400304A RID: 12362
		private uint value_;
	}
}
